package com.lghs.vickual_pf;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.WindowManager;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		// Splash Screen
		final Handler handler = new Handler();
		Runnable runnable = new Runnable() {
			public void run() {
				Intent intent = new Intent(getApplicationContext(), Activity_Physical.class);
				startActivity(intent);
				finish();
				return;
			}
		};
		handler.postDelayed(runnable, 2000); //2 seconds of splash screen.
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
